package com.atstudy.thread;

/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2022/12/22 15:20
 * @copyright: 博为峰
 */
public class ThreadDemo04 {
    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 10; i++) {
                    System.out.println(Thread.currentThread().getName() + "-" + i);
                }
            }
        }).start();
    }
}
